package com.itheima.equals;

public class Demo1equals {
    public static void main(String[] args) {
        String b1 = "ABCD";
        String b2 = "abcd";
        String b3 =new String("abcd");

    //equals: 比较字符串内容,区分大小写
        System.out.println(b1.equals(b2));
        System.out.println(b1.equals(b3));

        // equalsIgnoreCase : 比较字符串内容,忽略大小写
        System.out.println(b1.equalsIgnoreCase(b2));


    }
}
